package com.carpedil.service.impl;

import com.carpedil.dao.impl.UserDaoImpl;
import com.carpedil.service.UserService;

/** @author Administrator */
public class UserServiceImpl implements UserService {
  /** 纯xml配置注入方式 userDao作为属性引入userService业务层 所以需要给userDao生成getter/setter方法 */
  private UserDaoImpl userDao;

  @Override
  public void doSomething() {
    userDao.doSomething();
    System.out.println("userService========>业务层方法");
  }

  public UserDaoImpl getUserDao() {
    return userDao;
  }

  public void setUserDao(UserDaoImpl userDao) {
    this.userDao = userDao;
  }
}
